<template>
<div class="index">
  <div class="index-btn">
    <van-button size="large" @click="toHome">登录</van-button>
  </div>

</div>
</template>

<script>
export default {
  methods: {
    toHome () {
      this.$router.push({path: '/'})
    }
  }
}
</script>
<style lang="scss">
@import '../assets/styles/common.scss';
.index {
    background: url("/static/images/login.png");
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100vh;
    display: flex;
    &-btn {
        width: 100%;
        position: fixed;
        bottom: px2rem(400px);
        width: 60%;
        margin: 0 20%;
    }
}
</style>
